﻿<%@ Page Language="C#" MasterPageFile="~masterurl/custom.master" AutoEventWireup="true"
  Inherits="Kiiro.SiteDefinition.PortalPages.EditSetup, Kiiro.SiteDefinition, Version=1.2.0.7, Culture=neutral, PublicKeyToken=5b2f4277f61b7816" %>

<%@ Register TagPrefix="v2" TagName="AttachmentControl" Src="~/_controltemplates/Kiiro/AttachmentControl.ascx" %>
<asp:Content ID="ContentTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
  <asp:Literal ID="litTitle" runat="server" />
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

  <script type="text/javascript">
    $(InitProfilePicture);
    $(InitSandboxEnabled);
    $(InitLicenseType);
    $(InitColorPickers);    
  </script>

  <div class="body-pad">
    <div class="body">
      <div class="wrap">
        <div class="panel-pad">
          <div class="panel">
            <div class="panel-wrap">
              <div class="panel-title">
                <h2>
                  Basic Information</h2>
              </div>
              <div class="panel-content">
                <div class="settings">
                  <div class="row">
                    <dl>
                      <dt>Site Name <span class="required">*</span></dt>
                      <dd>
                        <asp:TextBox ID="txtSiteName" runat="server" CssClass="input" /></dd>
                      <dd>
                        <asp:Label ID="lblSiteNameMessage" runat="server" class="validation-message" /></dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          Give Kiiro a site name.</h3>
                      </dt>
                      <dd>
                        This will be used to identify the portal in SharePoint. Maximum length of 50 characters.</dd>
                    </dl>
                  </div>
                  <div class="row">
                    <v2:AttachmentControl id="attachments" runat="server" Title="Site Logo " />
                    <dl>
                      <dt>
                        <h3>
                          The site logo.</h3>
                      </dt>
                      <dd>
                        The site logo will be displayed on the portal and project banner header. Must be
                        either a .jpg or a .png and a maximum of 90 pixels wide and 30 pixels tall.</dd>
                    </dl>
                  </div>
                  <div class="row">
                    <dl>
                      <dt>Hours Per Day</dt>
                      <dd>
                        <asp:TextBox ID="txtHoursPerDay" runat="server" CssClass="input" /></dd>
                      <dd>
                        <asp:Label ID="lblHoursPerDayMessage" runat="server" class="validation-message" /></dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          Hours Per Day.</h3>
                      </dt>
                      <dd>
                        The amount of work hours per day.</dd>
                    </dl>
                  </div>
                  <asp:Panel ID="pnlCustomColors" runat="server" CssClass="row pnlCustomColors">
                    <dl>
                      <dt>Customize Colors</dt>
                      <dd>
                        <div class="portalColors">
                          <div class="left">
                            <div id="csPortalHeadline" class="colorSelector">
                              <div class="portalH">
                              </div>
                            </div>
                            <asp:TextBox ID="txtPortalHeadline" runat="server" class="portalHeadline" />
                            <div id="csPortalMenu" class="colorSelector">
                              <div class="portalM">
                              </div>
                            </div>
                            <asp:TextBox ID="txtPortalMenu" runat="server" class="portalMenu" />
                          </div>
                          <div class="colorTitle">
                            Portal Colors
                          </div>
                        </div>
                        <div class="projectColors">
                          <div class="left">
                            <div id="csProjectHeadline" class="colorSelector">
                              <div class="projectH">
                              </div>
                            </div>
                            <asp:TextBox ID="txtProjectHeadline" runat="server" class="projectHeadline" />
                            <div id="csProjectMenu" class="colorSelector">
                              <div class="projectM">
                              </div>
                            </div>
                            <asp:TextBox ID="txtProjectMenu" runat="server" class="projectMenu" />
                          </div>
                          <div class="colorTitle">
                            Project Colors
                          </div>
                        </div>
                        <div class="globalColors">
                          <div class="left">
                            <div id="csLinks" class="colorSelector">
                              <div class="linkBG">
                              </div>
                            </div>
                            <asp:TextBox ID="txtLinks" runat="server" class="links" />
                            <div id="csTitles" class="colorSelector">
                              <div class="titleBG">
                              </div>
                            </div>
                            <asp:TextBox ID="txtTitleColor" runat="server" class="titleColor" />
                          </div>
                          <div class="colorTitle">
                            Links
                            <br />
                            <br />
                            Titles
                          </div>
                          <div class="right">
                          </div>
                        </div>
                        <div class="defaultColors">
                          <div class="left">
                            <div>
                              <asp:CheckBox ID="chkColorDefaults" runat="server" />
                            </div>
                          </div>
                          <div class="colorTitle">
                            Restore Kiiro default colors
                          </div>
                        </div>
                      </dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          Customize your Kiiro's Colors</h3>
                      </dt>
                      <dd>
                        Change the colors used on your Kiiro site.</dd>
                    </dl>
                  </asp:Panel>
                  <asp:Panel ID="pnlWPSandboxEnabled" runat="server" CssClass="row">
                    <dl>
                      <dt>Web Part Tab Enabled</dt>
                      <dd>
                        <asp:CheckBox ID="ckbWPSandboxEnabled" runat="server" CssClass="jq_sandboxEnabled" /></dd>
                      <dd>
                        <asp:Label ID="lblWPSandboxEnabled" runat="server" class="validation-message" /></dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          Web Part Tab Enabled</h3>
                      </dt>
                      <dd>
                        The Kiiro web part tab is a page where you can display additional Kiiro and 3rd
                        party web parts.</dd>
                    </dl>
                  </asp:Panel>
                  <asp:Panel ID="pnlWPSandboxNavText" runat="server" CssClass="jq_sandboxNavText row borderless">
                    <dl>
                      <dt>Web Part Tab Navigation Text</dt>
                      <dd>
                        <asp:TextBox ID="txtWPSandboxNavText" runat="server" CssClass="input" /></dd>
                      <dd>
                        <asp:Label ID="lblWPSandboxNavText" runat="server" class="validation-message" /></dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          Web Part Tab Navigation Text</h3>
                      </dt>
                      <dd>
                        The text to display for the web part navigation tab.</dd>
                    </dl>
                  </asp:Panel>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="panel-pad">
          <div class="panel">
            <div class="panel-wrap">
              <div class="panel-title">
                <h2>
                  Email Information</h2>
              </div>
              <div class="panel-content">
                <div class="settings">
                  <div class="row">
                    <dl>
                      <dt>System Email</dt>
                      <dd>
                        <asp:TextBox ID="txtSystemEmail" runat="server" CssClass="input" /></dd>
                      <dd>
                        <asp:Label ID="lblSystemEmailMessage" runat="server" class="validation-message" /></dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          Enter the system email address.</h3>
                      </dt>
                      <dd>
                        All system generated emails will be "from" this address.</dd>
                    </dl>
                  </div>
                  <div class="row">
                    <dl>
                      <dt>Email Updates</dt>
                      <dd>
                        <asp:CheckBox ID="chkSendEmailUpdates" runat="server" /></dd>
                      <dd>
                        <asp:Label ID="lblSendEmailUpdatesMessage" runat="server" class="validation-message" /></dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          Send email updates.</h3>
                      </dt>
                      <dd>
                        Select whether the system will send email updates.</dd>
                    </dl>
                  </div>
                  <div class="row">
                    <dl>
                      <dt>Email Replies</dt>
                      <dd>
                        <asp:CheckBox ID="chkAllowEmailReplies" runat="server" /></dd>
                      <dd>
                        <asp:Label ID="lblAllowEmailRepliesMessage" runat="server" class="validation-message" /></dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          Allow email replies.</h3>
                      </dt>
                      <dd>
                        Select whether the system will allow email replies.</dd>
                    </dl>
                  </div>
                  <div class="row">
                    <dl>
                      <dt>SMTP Information</dt>
                      <dd>
                        <asp:TextBox ID="txtSMTPInfo" runat="server" CssClass="input" /></dd>
                      <dd>
                        <asp:Label ID="lblSMTPInfoMessage" runat="server" class="validation-message" /></dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          SMTP Information.</h3>
                      </dt>
                      <dd>
                        SMTP Info.</dd>
                    </dl>
                  </div>
                  <div class="row">
                    <dl>
                      <dt>POP Information</dt>
                      <dd>
                        <asp:TextBox ID="txtPOPInfo" runat="server" CssClass="input" /></dd>
                      <dd>
                        <asp:Label ID="lblPOPInfoMessage" runat="server" class="validation-message" /></dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          POP Information.</h3>
                      </dt>
                      <dd>
                        POP Info.</dd>
                    </dl>
                  </div>
                  <div class="row">
                    <dl>
                      <dt>POP Login</dt>
                      <dd>
                        <asp:TextBox ID="txtPopLogin" runat="server" CssClass="input" /></dd>
                      <dd>
                        <asp:Label ID="lblPopLoginInfoMessage" runat="server" class="validation-message" /></dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          POP Login.</h3>
                      </dt>
                      <dd>
                        POP Login.</dd>
                    </dl>
                  </div>
                  <div class="row borderless">
                    <dl>
                      <dt>POP Password</dt>
                      <dd>
                        <asp:TextBox ID="txtPopPassword" runat="server" CssClass="input" /></dd>
                      <dd>
                        <asp:Label ID="lblPopPasswordInfoMessage" runat="server" class="validation-message" /></dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          POP Password.</h3>
                      </dt>
                      <dd>
                        POP Password.</dd>
                    </dl>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="panel-pad">
          <div class="panel" id="licenseinfo" runat="server" visible="true">
            <div class="panel-wrap">
              <div class="panel-title">
                <h2>
                  License Information</h2>
              </div>
              <div class="panel-content">
                <div class="settings">
                  <div class="row">
                    <dl>
                      <dt>License Type</dt>
                      <dd class="key-value">
                        <asp:RadioButtonList ID="rblLicenseType" runat="server" CssClass="radio jq_LicenseType"
                          RepeatDirection="Horizontal" RepeatLayout="Flow">
                          <asp:ListItem Value="0" Selected="True">Instance License</asp:ListItem>
                          <asp:ListItem Value="1">Server License</asp:ListItem>
                        </asp:RadioButtonList>
                      </dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          The Kiiro license type</h3>
                      </dt>
                      <dd>
                        A instance license is only valid for a specific Kiiro deployment and a server license
                        is valid for all Kiiro deployments in the farm.
                      </dd>
                    </dl>
                  </div>
                  <div class="row">
                    <dl>
                      <dt>Install Code</dt>
                      <dd class="key-value">
                        <asp:Label ID="lblInstanceCode" runat="server" CssClass="jq_InstanceCode" />
                        <asp:Label ID="lblServerCode" runat="server" CssClass="jq_ServerCode" />
                      </dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          Your Kiiro install code</h3>
                      </dt>
                      <dd>
                        The unique install code for this Kiiro deployment. You need to supply this code
                        when purchasing license keys. License keys are only valid when used in the deployment
                        with the matching license type and install code.
                      </dd>
                    </dl>
                  </div>
                  <div class="row">
                    <dl>
                      <dt>License Key</dt>
                      <dd>
                        <asp:TextBox ID="txtLicenseKey" runat="server" TextMode="MultiLine" Rows="5" CssClass="textarea" /><br />
                      </dd>
                      <dd>
                        <asp:Label ID="lblLicenseKeyMessage" runat="server" class="validation-message" /></dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          Your license key.</h3>
                      </dt>
                      <dd>
                        Enter the encrypted license key exactly as provided to you by nForm User Experience.
                        If no license key is provided or the provided key is invalid you will be limited
                        to 3 active users and 10 open (active & being planned) projects.</dd>
                    </dl>
                  </div>
                  <div class="row">
                    <dl>
                      <dt>Project Limit</dt>
                      <dd class="key-value">
                        <asp:Label ID="lblProjectSiteLimit" runat="server" /></dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          Project Limit</h3>
                      </dt>
                      <dd>
                        The maximum number of open (active & being planned) projects allowed with this license
                        key.</dd>
                    </dl>
                  </div>
                  <div class="row borderless">
                    <dl>
                      <dt>User Limit</dt>
                      <dd class="key-value">
                        <asp:Label ID="lblUserLimit" runat="server" /></dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          User Limit</h3>
                      </dt>
                      <dd>
                        The maximum number of active users allowed with this license key.</dd>
                    </dl>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="form-buttons">
          <ul>
            <li>
              <asp:LinkButton ID="btnSaveSetup" runat="server" Text="SAVE SETUP" OnClientClick="FillColors();"
                OnClick="btnSave_Click">
                                <img alt="" src="/_layouts/images/Kiiro/button-save.png" />
              </asp:LinkButton>
            </li>
            <li>
              <asp:LinkButton ID="btnCancelSetup" runat="server" Text="CANCEL" OnClick="btnCancel_Click">
                                <img alt="" src="/_layouts/images/Kiiro/button-cancel.png" />
              </asp:LinkButton>
            </li>
          </ul>
        </div>
      </div>
    </div>
  </div>
</asp:Content>
